<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */
namespace App\Model;

use Hyperf\DbConnection\Model\Model as BaseModel;

abstract class Model extends BaseModel
{
    protected array $data = [];

    public static function getTableName() :?string
    {
        return (new static())->getTable();
    }

    public function setData(array $data)
    {
        var_dump("setData",$data);
        $this->data = $data;
    }

    public function getData()
    {
        var_dump("getData",$this->data);
        return $this->data;
    }

}
